#ifndef PMATERIAL_H
#define PMATERIAL_H

#include "Box2D.h"

namespace Tmpl8
{


class pMaterial
{
public:
							pMaterial(float aFriction, float aRestitution, float aDensity, bool aIsTrigger);
							pMaterial(b2FixtureDef aFixture);

							~pMaterial(){}

	void					Init(float aFriction, float aRestitution, float aDensity, bool aIsTrigger);

	void					SetFriction(float aFriction);
	float					GetFriction();
	
	void					SetRestitution(float aRestitution);
	float					GetRestitution();

	void					SetDensity(float aDensity);
	float					GetDensity();

	void					SetIsTrigger(bool aIsTrigger);
	bool					GetIsTrigger();

	void					SetFixture(b2FixtureDef aFixture){mFixture = aFixture;}
	b2FixtureDef			GetFixture(){return  mFixture;}

	void					SetDamage(float aDamage){mDamage = aDamage;}
	float					GetDamage(){return mDamage;}

	void					SetCanStick(bool aCanStick){mCanStick = aCanStick;}
	bool					CanStick(){return mCanStick;}

	void					SetCanJump(bool aCanJump){mCanJump = aCanJump;}
	bool					GetCanJump(){return mCanJump;}
protected:

	//Misc variables
	bool					mCanStick;
	bool					mCanJump;
	float					mDamage;


	//box2d variables.
	b2FixtureDef			mFixture;
};



}; // end namespace tmpl

#endif